package com.xysq.util;

import android.content.Context;
import android.widget.Toast;

/**
 * @author 李纪钢 keegan704@qq.com
 * @version 1.0 创建时间：14/12/22
 */
public class ToastUtil {

    private ToastUtil() {
        throw new AssertionError();
    }

    public static void showShort(Context context, int stringResId) {
        Toast.makeText(context, stringResId, Toast.LENGTH_SHORT).show();
    }

    public static void showShort(Context context, CharSequence message) {
        Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
    }

    public static void showLong(Context context, int stringResId) {
        Toast.makeText(context, stringResId, Toast.LENGTH_LONG).show();
    }

    public static void showLong(Context context, CharSequence message) {
        Toast.makeText(context, message, Toast.LENGTH_LONG).show();
    }

}
